Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-46777: sphinx < 8.1.0 #231

Merged
merged 2 commits into from
Oct 10, 2024
Merged

DM-46777: sphinx < 8.1.0 #231

merged 2 commits into from
Oct 10, 2024

Conversation

fajpunk
Copy link
Member

@fajpunk fajpunk commented Oct 10, 2024

  • Backport of DM-46777: sphinx < 8.1.0 #230
  • Ignore type checking for one line that has a type error that gets caught by a newer version of mypy. This file is removed on main, so I don't want to change anything, at least in the PR.

[Sphinx
8.1.0](sphinx-doc/sphinx@v8.0.2...v8.1.0)
contains [a
commit](https://github.com/sphinx-doc/sphinx/pull/12762/files#diff-a4c6bf1492ef480b94af82c988f64ca56fa256fab0ed043a5ad3d4043f89a645L14)
that removes the `ExtensionError` export from the `sphinx.util` package.
This currently breaks the
[sphinxcontrib-mermaid](https://github.com/mgaitan/sphinxcontrib-mermaid)
dependency:

```
File
"/home/danfuchs/src/safir/.nox/docs-clean/lib/python3.12/site-packages/sphinxcontrib/autoclassdiag.py",
line 3, in <module>    from sphinx.util import ExtensionError,
import_objectImportError: cannot import name 'ExtensionError' from
'sphinx.util'
(/home/danfuchs/src/safir/.nox/docs-clean/lib/python3.12/site-packages/sphinx/util/__init__.py)
```

Pin to < 8.1.0 for now until this gets fixed in either sphinx or
sphinxcontrib-mermaid (and any other packages that we use that might
also be broken)
@fajpunk fajpunk merged commit 2a9c468 into 1.0 Oct 10, 2024
6 checks passed
@fajpunk fajpunk deleted the tickets/DM-46777/backport-sphinx-pin branch October 10, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants